package com.czp.ssm.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class HotelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HotelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHotelIdIsNull() {
            addCriterion("HOTEL_ID is null");
            return (Criteria) this;
        }

        public Criteria andHotelIdIsNotNull() {
            addCriterion("HOTEL_ID is not null");
            return (Criteria) this;
        }

        public Criteria andHotelIdEqualTo(String value) {
            addCriterion("HOTEL_ID =", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdNotEqualTo(String value) {
            addCriterion("HOTEL_ID <>", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdGreaterThan(String value) {
            addCriterion("HOTEL_ID >", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdGreaterThanOrEqualTo(String value) {
            addCriterion("HOTEL_ID >=", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdLessThan(String value) {
            addCriterion("HOTEL_ID <", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdLessThanOrEqualTo(String value) {
            addCriterion("HOTEL_ID <=", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdLike(String value) {
            addCriterion("HOTEL_ID like", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdNotLike(String value) {
            addCriterion("HOTEL_ID not like", value, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdIn(List<String> values) {
            addCriterion("HOTEL_ID in", values, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdNotIn(List<String> values) {
            addCriterion("HOTEL_ID not in", values, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdBetween(String value1, String value2) {
            addCriterion("HOTEL_ID between", value1, value2, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelIdNotBetween(String value1, String value2) {
            addCriterion("HOTEL_ID not between", value1, value2, "hotelId");
            return (Criteria) this;
        }

        public Criteria andHotelNameIsNull() {
            addCriterion("HOTEL_NAME is null");
            return (Criteria) this;
        }

        public Criteria andHotelNameIsNotNull() {
            addCriterion("HOTEL_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andHotelNameEqualTo(String value) {
            addCriterion("HOTEL_NAME =", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameNotEqualTo(String value) {
            addCriterion("HOTEL_NAME <>", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameGreaterThan(String value) {
            addCriterion("HOTEL_NAME >", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameGreaterThanOrEqualTo(String value) {
            addCriterion("HOTEL_NAME >=", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameLessThan(String value) {
            addCriterion("HOTEL_NAME <", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameLessThanOrEqualTo(String value) {
            addCriterion("HOTEL_NAME <=", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameLike(String value) {
            addCriterion("HOTEL_NAME like", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameNotLike(String value) {
            addCriterion("HOTEL_NAME not like", value, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameIn(List<String> values) {
            addCriterion("HOTEL_NAME in", values, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameNotIn(List<String> values) {
            addCriterion("HOTEL_NAME not in", values, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameBetween(String value1, String value2) {
            addCriterion("HOTEL_NAME between", value1, value2, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelNameNotBetween(String value1, String value2) {
            addCriterion("HOTEL_NAME not between", value1, value2, "hotelName");
            return (Criteria) this;
        }

        public Criteria andHotelPriceIsNull() {
            addCriterion("HOTEL_PRICE is null");
            return (Criteria) this;
        }

        public Criteria andHotelPriceIsNotNull() {
            addCriterion("HOTEL_PRICE is not null");
            return (Criteria) this;
        }

        public Criteria andHotelPriceEqualTo(BigDecimal value) {
            addCriterion("HOTEL_PRICE =", value, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceNotEqualTo(BigDecimal value) {
            addCriterion("HOTEL_PRICE <>", value, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceGreaterThan(BigDecimal value) {
            addCriterion("HOTEL_PRICE >", value, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("HOTEL_PRICE >=", value, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceLessThan(BigDecimal value) {
            addCriterion("HOTEL_PRICE <", value, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("HOTEL_PRICE <=", value, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceIn(List<BigDecimal> values) {
            addCriterion("HOTEL_PRICE in", values, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceNotIn(List<BigDecimal> values) {
            addCriterion("HOTEL_PRICE not in", values, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("HOTEL_PRICE between", value1, value2, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andHotelPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("HOTEL_PRICE not between", value1, value2, "hotelPrice");
            return (Criteria) this;
        }

        public Criteria andCityNameIsNull() {
            addCriterion("CITY_NAME is null");
            return (Criteria) this;
        }

        public Criteria andCityNameIsNotNull() {
            addCriterion("CITY_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andCityNameEqualTo(String value) {
            addCriterion("CITY_NAME =", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotEqualTo(String value) {
            addCriterion("CITY_NAME <>", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameGreaterThan(String value) {
            addCriterion("CITY_NAME >", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameGreaterThanOrEqualTo(String value) {
            addCriterion("CITY_NAME >=", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameLessThan(String value) {
            addCriterion("CITY_NAME <", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameLessThanOrEqualTo(String value) {
            addCriterion("CITY_NAME <=", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameLike(String value) {
            addCriterion("CITY_NAME like", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotLike(String value) {
            addCriterion("CITY_NAME not like", value, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameIn(List<String> values) {
            addCriterion("CITY_NAME in", values, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotIn(List<String> values) {
            addCriterion("CITY_NAME not in", values, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameBetween(String value1, String value2) {
            addCriterion("CITY_NAME between", value1, value2, "cityName");
            return (Criteria) this;
        }

        public Criteria andCityNameNotBetween(String value1, String value2) {
            addCriterion("CITY_NAME not between", value1, value2, "cityName");
            return (Criteria) this;
        }

        public Criteria andPictureUrlIsNull() {
            addCriterion("PICTURE_URL is null");
            return (Criteria) this;
        }

        public Criteria andPictureUrlIsNotNull() {
            addCriterion("PICTURE_URL is not null");
            return (Criteria) this;
        }

        public Criteria andPictureUrlEqualTo(String value) {
            addCriterion("PICTURE_URL =", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlNotEqualTo(String value) {
            addCriterion("PICTURE_URL <>", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlGreaterThan(String value) {
            addCriterion("PICTURE_URL >", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlGreaterThanOrEqualTo(String value) {
            addCriterion("PICTURE_URL >=", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlLessThan(String value) {
            addCriterion("PICTURE_URL <", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlLessThanOrEqualTo(String value) {
            addCriterion("PICTURE_URL <=", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlLike(String value) {
            addCriterion("PICTURE_URL like", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlNotLike(String value) {
            addCriterion("PICTURE_URL not like", value, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlIn(List<String> values) {
            addCriterion("PICTURE_URL in", values, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlNotIn(List<String> values) {
            addCriterion("PICTURE_URL not in", values, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlBetween(String value1, String value2) {
            addCriterion("PICTURE_URL between", value1, value2, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andPictureUrlNotBetween(String value1, String value2) {
            addCriterion("PICTURE_URL not between", value1, value2, "pictureUrl");
            return (Criteria) this;
        }

        public Criteria andHotelDetailIsNull() {
            addCriterion("HOTEL_DETAIL is null");
            return (Criteria) this;
        }

        public Criteria andHotelDetailIsNotNull() {
            addCriterion("HOTEL_DETAIL is not null");
            return (Criteria) this;
        }

        public Criteria andHotelDetailEqualTo(String value) {
            addCriterion("HOTEL_DETAIL =", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailNotEqualTo(String value) {
            addCriterion("HOTEL_DETAIL <>", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailGreaterThan(String value) {
            addCriterion("HOTEL_DETAIL >", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailGreaterThanOrEqualTo(String value) {
            addCriterion("HOTEL_DETAIL >=", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailLessThan(String value) {
            addCriterion("HOTEL_DETAIL <", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailLessThanOrEqualTo(String value) {
            addCriterion("HOTEL_DETAIL <=", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailLike(String value) {
            addCriterion("HOTEL_DETAIL like", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailNotLike(String value) {
            addCriterion("HOTEL_DETAIL not like", value, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailIn(List<String> values) {
            addCriterion("HOTEL_DETAIL in", values, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailNotIn(List<String> values) {
            addCriterion("HOTEL_DETAIL not in", values, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailBetween(String value1, String value2) {
            addCriterion("HOTEL_DETAIL between", value1, value2, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelDetailNotBetween(String value1, String value2) {
            addCriterion("HOTEL_DETAIL not between", value1, value2, "hotelDetail");
            return (Criteria) this;
        }

        public Criteria andHotelRoomIsNull() {
            addCriterion("HOTEL_ROOM is null");
            return (Criteria) this;
        }

        public Criteria andHotelRoomIsNotNull() {
            addCriterion("HOTEL_ROOM is not null");
            return (Criteria) this;
        }

        public Criteria andHotelRoomEqualTo(String value) {
            addCriterion("HOTEL_ROOM =", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomNotEqualTo(String value) {
            addCriterion("HOTEL_ROOM <>", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomGreaterThan(String value) {
            addCriterion("HOTEL_ROOM >", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomGreaterThanOrEqualTo(String value) {
            addCriterion("HOTEL_ROOM >=", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomLessThan(String value) {
            addCriterion("HOTEL_ROOM <", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomLessThanOrEqualTo(String value) {
            addCriterion("HOTEL_ROOM <=", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomLike(String value) {
            addCriterion("HOTEL_ROOM like", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomNotLike(String value) {
            addCriterion("HOTEL_ROOM not like", value, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomIn(List<String> values) {
            addCriterion("HOTEL_ROOM in", values, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomNotIn(List<String> values) {
            addCriterion("HOTEL_ROOM not in", values, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomBetween(String value1, String value2) {
            addCriterion("HOTEL_ROOM between", value1, value2, "hotelRoom");
            return (Criteria) this;
        }

        public Criteria andHotelRoomNotBetween(String value1, String value2) {
            addCriterion("HOTEL_ROOM not between", value1, value2, "hotelRoom");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}